package DesignPattern.Proxy.Observer;

import java.util.Observable;
import java.util.Observer;

/**
 * @Author: Jun
 * @Date: 2018/9/28 21:50
 */
public class TaoBaoObserver implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        String newProduct=(String)arg;
        System.out.println("发送新产品【"+newProduct+"】同步到淘宝商域");
    }
}
